<ul class="list-group">
    <% for(var i=0;i<Math.min(NoticeBoard.length,10);i++){
        var item=NoticeBoard[i]%>
    <li class="list-group-item"><a href="./~/content/<%=item.category%>/<%=item.id%>/"><%=item.title%></a></li>
    <%}%>
</ul>